<?php

function check_user($uid,$redirecto){
    if(isset($_SESSION['uid']) and $SESSION['uid']==$uid){
        header("Location: ".$redirecto);
    }else {
        header("Location: login.html");
    }
    
    
    
}


